﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master"
    Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.CompanyMemberView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    CompanyMemberCreate
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Chỉnh Sửa Thông Tin Thành Viên Công Ty</span>
            <div class="switchbutton">
                <a href="<%= Url.Action("CompanyMemberList_Backend", "CompanyMember") %>" class="button">Danh sách</a>
            </div>
        </div>
        <br class="clear" />
        <div class="content">
            <% using (Html.BeginForm()){%>
                <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
                <%= Html.ValidationSummary(true) %>
            <div class="display-label error">
                <div class="errorcontent">
                    <p><%= Html.ValidationMessage("NoticePage")%></p>
                    <p><%= Html.ValidationMessageFor(model => model.FullName) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Birthday) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Address) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Email) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Phone) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.Position) %></p>
                </div>
            </div>

            <!--Image avatar here-->
            <%--<img src="../../../Image/Article/thumbnail/<%= Model.Avatar %>" alt="<%=  Model.Avatar %>" class="img_h170"/>--%>
            <div>
                <div class="editor_left">
                   <label>Ngôn ngữ</label><br />
                   <%= Html.DropDownListFor(model => model.LanguageID, ViewData["LaguageList"] as SelectList, new { @style = "width:300px;" })%>
               </div>
               <div class="editor_middle">
                    <label>Hình đại diện:</label><br />
                    <input name="uploadFile" id="uploadFile" type="file" />
                </div>
            </div><br class="clear"/><br />

            <div>
                <div class="editor_left">
                    <label>Họ tên:</label><br />
                    <%= Html.TextBoxFor(model => model.FullName) %>
                </div>
                <div class="editor_middle">
                    <div class="editor_fl">
                        <label>Giới tính:</label><br />
                        <%= Html.DropDownListFor(model => model.GenderID, ViewData["Gender"] as SelectList, new { @style="width:130px;"})%>
                    </div>
                    <div class="editor_fr">
                        <label>Ngày sinh:</label><br />
                        <%= Html.TextBoxFor(model => model.Birthday, new { @style="width:128px;"})%>
                    </div>
                </div>
            </div><br class="clear"/><br />

            <div>
                <label>Địa chỉ:</label><br />
                <%= Html.TextBoxFor(model => model.Address, new { @style="width:620px;"})%>
            </div><br class="clear"/><br />

            <div>
                <div class="editor_left">
                    <label>Chức cụ:</label><br />
                    <%= Html.TextBoxFor(model => model.Position) %>
                </div>
                <div class="editor_middle">
                    <label>Email:</label><br />
                    <%= Html.TextBoxFor(model => model.Email) %>
                </div>
                <div class="editor_right">
                    <label>Điện thoại:</label><br />
                    <%= Html.TextBoxFor(model => model.Phone) %>
                </div>
            </div><br class="clear"/><br />

            <p>
                <input type="submit" value="Lưu" />
                <a href="<%= Url.Action("CompanyMemberCreate","CompanyMember") %>"  class="buttonform">Làm Lại</a>
            </p>

        <% } %>
        </div>
    </div>
</asp:Content>
